package com.pension.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.pension.model.dao.RoomDao;
import com.pension.model.dto.Room;

@WebServlet("/board/enjoy.action")
public class EnjoyServlet extends HttpServlet {
	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
		throws ServletException, IOException {
		// 응답 컨텐츠 생성 (JSP 이용해서 처리 - jsp page로 forward)
		RequestDispatcher dispatcher = 
				req.getRequestDispatcher("/WEB-INF/views/enjoy/enjoy.jsp");
		
		dispatcher.forward(req, resp);

	}
	
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) 
		throws ServletException ,IOException {
		
		req.setCharacterEncoding("utf-8");
		doGet(req, resp);
	};

}








